#ifndef MPLAYER_H
#define MPLAYER_H

#include <QObject>
#include <QTcpSocket>

class MPlayer : public QObject
{
    private:
        QString id;
        QString x;
        QString y;
        QString username;
        QString bonus;
        QTcpSocket *socket;
        QString exp;
        QString level;
        QString direction;

    public:
        MPlayer();
        MPlayer(QTcpSocket *socket, QString username, int x, int y, QString bonus);
        ~MPlayer();

        // GETTERS
        QString get_id();
        QString get_x();
        QString get_y();
        QString get_username();
        QString get_bonus();
        QTcpSocket* get_socket();
        QString get_exp();
        QString get_level();
        QString get_direction();

        //SETTER
        void set_id(QString id);
        void set_x(QString x);
        void set_y(QString y);
        void set_username(QString username);
        void set_bonus(QString bonus);
        void set_socket(QTcpSocket* socket);
        void set_exp(QString exp);
        void set_level(QString level);
        void set_direction(QString direction);
};

#endif // MPLAYER_H
